import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
// 导入ElementPlus
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// 导入全局样式
import '@/assets/css/global.css';

// 导入弹框提示组件
import { ElMessage, ElMessageBox } from 'element-plus';
const app = createApp(App);
app.config.globalProperties.$message = ElMessage;
app.config.globalProperties.$confirm = ElMessageBox.confirm;

createApp(App)
  .use(store)
  .use(router)
  .use(ElementPlus, { size: 'small', zIndex: 3000 })
  .mount('#app');
